package com.s20y.generator.entity;

public enum TempletPathInfo {
    ENTITY("entity", "entity.java", ".java"),
    MAPPER_JAVA("mapper", "mapper.java", "Mapper.java"),
    MAPPER_XML("mapper", "mapper.xml", "Mapper.xml"),
    SERVICE("service", "service.java", "Service.java"),
    CONTROLLER("controller", "controller.java", "Controller.java");

    private String name;
    private String fileName;
    private String suffix;

    TempletPathInfo(String name, String fileName, String suffix) {
        this.name = name;
        this.fileName = fileName;
        this.suffix = suffix;
    }

    public String getFileName() {
        return this.fileName;
    }

    public String getFullPath(String rootPath, String className) {
        return rootPath + this.name + "/" + className + this.suffix;
    }

    public String toString() {
        return this.name;
    }
}
